:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light;
  color: #333333;
  background-color: #f5f7fa;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #4a9af5;
  text-decoration: inherit;
  transition: all 0.3s ease;
}
a:hover {
  color: #2c7dd1;
  transform: translateY(-1px);
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
  background-color: #f5f7fa;
  transition: background-color 0.3s ease;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #7ed957;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background-color: #5cb82d;
}
button:focus,
button:focus-visible {
  outline: 3px solid rgba(126, 217, 87, 0.3);
}

/* 添加一些全局动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* 全局过渡效果 */
.fade-transition {
  animation: fadeIn 0.5s ease-out;
}

.slide-transition {
  animation: slideUp 0.5s ease-out;
}

/* 聊天输入框动画效果 */
.animated-input {
  transition: all 0.3s ease-out;
}

.animated-input:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 48, 47, 0.15);
  border: none;
  outline: none;
}

.animated-input textarea::placeholder {
  transition: color 0.3s ease;
}

.animated-input:focus-within textarea::placeholder {
  color: rgba(65, 68, 63, 0.6);
}
